package com.tnsw.noxnox;

import com.tnsw.coreutils.AsyncManager;
import com.tnsw.noxnox.db.DBManager;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ListView;

public class CatalogActivity extends Activity {
	
	private String tag = "CatalogActivity";
	private AsyncManager asyncManager;
	private DBManager dbm;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_catalog);
		
		this.asyncManager = AsyncManager.getInstance();
		this.dbm = DBManager.getInstance(this);
		
		ListView lv = (ListView) this.findViewById(R.id.list);
		CatalogAdapter adapter = new CatalogAdapter(this);
		lv.setAdapter(adapter);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.catalog, menu);
		return true;
	}

}
